﻿@page "/account/reset/{UserId}"
@inherits PageBase

<div class="el-center-500">

    <BCard EnableAlwaysRender="true">
        <Header>
            <GoBack Title="设置新密码" Route="@PreviousRoute"></GoBack>
        </Header>
        <Body>
            <BForm @ref="form" LabelAlign="@LabelAlign.Right" Inline="false" EnableAlwaysRender="true" Style="width: 400px; margin: 20px auto;text-align: center;">
                <BFormItem TValue="string" Label="密码：" Name="@nameof(PasswordModel.Password)" IsRequired="true">
                    <BInput TValue="string" Type="@InputType.Password" Placeholder="请输入新密码" Style="width:300px;"></BInput>
                </BFormItem>
                <BFormItem TValue="string" Label="确认密码：" Name="@nameof(PasswordModel.ConfirmPassword)" IsRequired="true">
                    <BInput TValue="string" Type="@InputType.Password" Placeholder="请再次输入新密码" Style="width:300px;"></BInput>
                </BFormItem>
                <BFormActionItem Style="text-align:center;">
                    <BButton Type="ButtonType.Default" OnClick="e=>ResetPwd()" IsPlain="true" Style="width:300px;margin-left: 100px;">确定</BButton>
                </BFormActionItem>
            </BForm>
        </Body>
    </BCard>
</div>